@extends('admin.layouts.index')
@section('style', 'info')
@section('title', '-用户信息')
@section('content')
    <ol class="breadcrumb">
        <li><a href="{{url('charge/index.html')}}"><i class="icon icon-home"></i> 主页</a></li>
        <li class="active">用户信息</li>
    </ol>
@include('admin.layouts.tip')
    <div class="panel">
        <div class="panel-heading"><h5>用户信息</h5></div>
        <div class="panel-body">

            <form class="form-horizontal" method="post" action="{{url('charge/info/update.html')}}">
                {{csrf_field()}}
                <div class="form-group">
                    <label class="col-sm-2">user_key</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">{{$ret->user_key}}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2">电子邮箱</label>
                    <div class="col-sm-10">
                        <p class="form-control-static">{{$ret->user_email}}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label for="name" class="col-sm-2">昵称</label>
                    <div class="col-sm-10">
                        <input type="text" name="user_name" class="form-control" id="name" value="{{$ret->user_name}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="user_phone" class="col-sm-2">手机号</label>
                    <div class="col-sm-10">
                        <input type="text" name="user_phone" class="form-control" id="user_phone" value="{{$ret->user_phone}}">
                    </div>
                </div>
                <div class="user-info-submit" style="text-align: center">
                    <button  type="submit" class="btn">修改</button>
                </div>

            </form>
        </div>
    </div>
    <div class="panel">
        <div class="panel-heading"><h5>修改密码</h5></div>
        <div class="panel-body">
            <form class="form-horizontal" method="post" action="{{url('charge/info/changepassword.html')}}">
                {{csrf_field()}}
                <div class="form-group">
                    <label for="password-o" class="col-sm-2">原密码</label>
                    <div class="col-sm-10">
                        <input type="password" name="password_o" class="form-control" id="password-o" placeholder="原密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="password-n" class="col-sm-2">新密码</label>
                    <div class="col-sm-10">
                        <input type="password" name="password_n" class="form-control" id="password-n" placeholder="新密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="password-s" class="col-sm-2">确认密码</label>
                    <div class="col-sm-10">
                        <input type="password" name="password_s" class="form-control" id="password-s" placeholder="确认密码">
                    </div>
                </div>
                <div class="user-info-submit" style="text-align: center">
                    <button  type="submit" class="btn">修改</button>
                </div>

            </form>
        </div>
    </div>
@endsection